<%@ include file="connect.jsp"%>
<%--
  Created by IntelliJ IDEA.
  User: Calvin
  Date: 12/1/12
  Time: 7:42 PM
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title></title>

</head>
<body>
<%
    String learnId = request.getParameter("id");
    String para = "";
    ResultSet rs = stat.executeQuery("select * from learn where learnid = " + learnId);
    if (rs.next()) {
        para = rs.getString("Paragraph");

    }
%>
<div id="popup-header">
    <h2>Update Paragraph</h2>
</div>
<form action="doUpdatePara.jsp" method="post">
    <table id="paragraf">
    <div class="txt-fld" id="word1">
        <label style="padding-top: 10px;">Paragraph :</label>
        <textarea cols="50" rows="10" id="para" name="para" style="font-family: Segoe UI; font-size: 12pt"><%=para%>
        </textarea>
        <tr>
            <td><input type="hidden" name="learnId" id="learnId" value="<%out.print(learnId);%>"></td>
        </tr>
    </div>
    <div id="err">

    </div>

    <div class="btn-fld">
        <button type="submit">Save</button>
    </div>
    </table>

</form>

</body>
</html>